package com.jx.gocomtask.webservice.entity;

import java.io.Serializable;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;


/**
 * The persistent class for the ext_task_todo_user database table.
 * 
 */
@Entity
@Table(name="ext_task_todo_user")
@NamedQuery(name="ExtTaskTodoUser.findAll", query="SELECT e FROM ExtTaskTodoUser e")
public class ExtTaskTodoUser implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;

	@Column(name="task_user")
	private String taskUser;

	@Column(name="task_user_name")
	private String taskUserName;

	//bi-directional many-to-one association to ExtTaskTodo
	@ManyToOne
	@JoinColumn(name="task_todo_id")
	@JsonBackReference
	private ExtTaskTodo extTaskTodo;

	public ExtTaskTodoUser() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTaskUser() {
		return this.taskUser;
	}

	public void setTaskUser(String taskUser) {
		this.taskUser = taskUser;
	}

	public String getTaskUserName() {
		return this.taskUserName;
	}

	public void setTaskUserName(String taskUserName) {
		this.taskUserName = taskUserName;
	}

	public ExtTaskTodo getExtTaskTodo() {
		return this.extTaskTodo;
	}

	public void setExtTaskTodo(ExtTaskTodo extTaskTodo) {
		this.extTaskTodo = extTaskTodo;
	}

}